(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t(require("vue")):typeof define=="function"&&define.amd?define(["vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,e.index=t(e.vue))})(this,function(e){"use strict";const t=e.defineComponent({__name:"index",props:{percentage:{default:0},isAnimation:{type:Boolean,default:!1},time:{default:3e3}},setup(r){const n=r,o=e.ref(0);return e.onMounted(()=>{if(n.isAnimation){let i=Math.ceil(n.time/n.percentage),s=setInterval(()=>{o.value+=1,o.value>=n.percentage&&(o.value=n.percentage,clearInterval(s))},i)}else o.value=n.percentage}),(i,s)=>{const p=e.resolveComponent("el-progress");return e.openBlock(),e.createBlock(p,e.mergeProps(i.$attrs,{percentage:o.value}),null,16,["percentage"])}}});return{install(r){r.component("m-progress",t)}}});
